#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    bool containsDuplicate(vector<int>& nums) {
        unordered_map<int, int> hash;
        for (auto i : nums)
        {
            if (hash.count(i)) return true;
            hash[i];
        }

        return false;
    }
};